﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Principal;
using ICarPool.ORM.Attributes;

namespace ICarPool.DTO
{
    /// <summary>
    /// 用户信息实体类
    /// </summary>
    [Table(Name = "ICarPool_User")]
    [Serializable]
    public class CarPoolUser : BaseEntity
    {
        public CarPoolUser()
        {
        }

        [Column]
        public string Name { get; set; }

        [Column(IsUpdate=false)]
        public string LoginName { get; set; }

        [Column]
        public string PassWord { get; set; }

        [Column]
        public string Email { get; set; }

        [Column]
        public bool Sex { get; set; }

        [Column]
        public string Tel { get; set; }

        [Column]
        public int GroupID { get; set; }

        public string GroupName { get; set; }

        [Column]
        public string IconUrl { get; set; }

        [Column]
        public DateTime CreateTime { get; set; }

        [Column]
        public string Province { get; set; }

        [Column]
        public string City { get; set; }

        [Column]
        public string Address { get; set; }
    }

    /// <summary>
    /// 登陆结果：NoRecord,数据库无记录；Success，成功；Failed，失败。
    /// </summary>
    public enum EnumLoginResult
    {
        NoRecord,
        Success,
        Failed
    }
}
